package week9.shisi;

/**
 * Created by mc on 2017/4/13.
 */

public class txt3
{
    public static void main(String[] arges)
    {
        check();

    }
    public static void check()
    {
        String qq = "12345";
        int len;
        len = qq.length();
        if(len>=5&&len<=15)
        {
            if(!qq.startsWith("0"))
            {
                char[] arr = qq.toCharArray();
                boolean flag = true;
                for(int x=0;x<arr.length;x=x+1)
                {
                    if(!(arr[x]>='0'&&arr[x]<='9')) {
                        flag = true;
                        break;
                    }
                }
                if(flag)
                {
                    System.out.println("qq:"+qq);
                }
                else
                {
                    System.out.println("出现非法字符");
                }
            }
            else
            {
                System.out.println("不可以0开头");
            }
        }
    }
}

